//
//  TitleCenterNa.m
//  Air
//
//  Created by dongguozheng on 2016/12/15.
//  Copyright © 2016年 董国政. All rights reserved.
//

#import "TitleCenterNa.h"

@implementation TitleCenterNa
+(void)ChangeCenter:(UINavigationController *)na
{
    NSArray *viewControllerArray = [na viewControllers];
    long previousViewControllerIndex = [viewControllerArray indexOfObject:self] - 1;
    UIViewController *previous;
    if (previousViewControllerIndex >= 0) {
        previous = [viewControllerArray objectAtIndex:previousViewControllerIndex];
        previous.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc]
                                                     initWithTitle:@"xx"
                                                     style:UIBarButtonItemStylePlain
                                                     target:self
                                                     action:nil];
    }
}
@end
